package com.yangjie.autotest;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
	
		Framework fw = (Framework)context.getBean("framework");
		String testCasesPath = null;
		String testCaseName = null;
		if(args.length >= 1) {
			testCasesPath = args[0];
		}
		if(args.length >= 2) {
			testCaseName = args[1];
		}
		fw.run(testCasesPath, testCaseName);
	}
}
